<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="generator" content="JsDoc Toolkit" />
		
		<title>JsDoc Reference - window.Mtils.extention</title>

		<style type="text/css">
			/* default.css */
body
{
	font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
	width: 800px;
}

.header
{
	clear: both;
	background-color: #ccc;
	padding: 8px;
}

h1
{
	font-size: 150%;
	font-weight: bold;
	padding: 0;
	margin: 1em 0 0 .3em;
}

hr
{
	border: none 0;
	border-top: 1px solid #7F8FB1;
	height: 1px;
}

pre.code
{
	display: block;
	padding: 8px;
	border: 1px dashed #ccc;
}

#index
{
	margin-top: 24px;
	float: left;
	width: 160px;
	position: absolute;
	left: 8px;
	background-color: #F3F3F3;
	padding: 8px;
}

#content
{
	margin-left: 190px;
	width: 600px;
}

.classList
{
	list-style-type: none;
	padding: 0;
	margin: 0 0 0 8px;
	font-family: arial, sans-serif;
	font-size: 1em;
	overflow: auto;
}

.classList li
{
	padding: 0;
	margin: 0 0 8px 0;
}

.summaryTable { width: 100%; }

h1.classTitle
{
	font-size:170%;
	line-height:130%;
}

h2 { font-size: 110%; }
caption, div.sectionTitle
{
	background-color: #7F8FB1;
	color: #fff;
	font-size:130%;
	text-align: left;
	padding: 2px 6px 2px 6px;
	border: 1px #7F8FB1 solid;
}

div.sectionTitle { margin-bottom: 8px; }
.summaryTable thead { display: none; }

.summaryTable td
{
	vertical-align: top;
	padding: 4px;
	border-bottom: 1px #7F8FB1 solid;
	border-right: 1px #7F8FB1 solid;
}

/*col#summaryAttributes {}*/
.summaryTable td.attributes
{
	border-left: 1px #7F8FB1 solid;
	width: 140px;
	text-align: right;
}

td.attributes, .fixedFont
{
	line-height: 15px;
	color: #002EBE;
	font-family: "Courier New",Courier,monospace;
	font-size: 13px;
}

.summaryTable td.nameDescription
{
	text-align: left;
	font-size: 13px;
	line-height: 15px;
}

.summaryTable td.nameDescription, .description
{
	line-height: 15px;
	padding: 4px;
	padding-left: 4px;
}

.summaryTable { margin-bottom: 8px; }

ul.inheritsList
{
	list-style: square;
	margin-left: 20px;
	padding-left: 0;
}

.detailList {
	margin-left: 20px; 
	line-height: 15px;
}
.detailList dt { margin-left: 20px; }

.detailList .heading
{
	font-weight: bold;
	padding-bottom: 6px;
	margin-left: 0;
}

.light, td.attributes, .light a:link, .light a:visited
{
	color: #777;
	font-style: italic;
}

.fineprint
{
	text-align: right;
	font-size: 10px;
}
		</style>
	</head>

	<body>
<!-- ============================== header ================================= -->	
		<!-- begin static/header.html -->
		<div id="header">
</div>
		<!-- end static/header.html -->

<!-- ============================== classes index ============================ -->
		<div id="index">
			<!-- begin publish.classesIndex -->
			<div align="center"><a href="../index.html">Class Index</a>
| <a href="../files.html">File Index</a></div>
<hr />
<h2>Classes</h2>
<ul class="classList">
	
	<li><i><a href="../symbols/_global_.html">_global_</a></i></li>
	
	<li><a href="../symbols/window.Mtils.html">window.Mtils</a></li>
	
	<li><a href="../symbols/window.Mtils.browser.html">window.Mtils.browser</a></li>
	
	<li><a href="../symbols/window.Mtils.constant.html">window.Mtils.constant</a></li>
	
	<li><a href="../symbols/window.Mtils.extention.html">window.Mtils.extention</a></li>
	
	<li><a href="../symbols/window.Mtils.security.html">window.Mtils.security</a></li>
	
	<li><a href="../symbols/window.Mtils.utils.html">window.Mtils.utils</a></li>
	
	<li><a href="../symbols/window.Mtils.validation.html">window.Mtils.validation</a></li>
	
</ul>
<hr />
			<!-- end publish.classesIndex -->
		</div>
		
		<div id="content">
<!-- ============================== class title ============================ -->
			<h1 class="classTitle">
				
				Class window.Mtils.extention
			</h1>

<!-- ============================== class summary ========================== -->			
			<p class="description">
				
				
			
				扩展类
				
				
					<br /><i>Defined in: </i> <a href="../symbols/src/Mtils.js.html">Mtils.js</a>.
				
			</p>

<!-- ============================== constructor summary ==================== -->			
			
			<table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class window.Mtils.extention.">
				<caption>Class Summary</caption>
				<thead>
					<tr>
						<th scope="col">Constructor Attributes</th>
						<th scope="col">Constructor Name and Description</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td class="attributes">&nbsp;</td>
						<td class="nameDescription" >
							<div class="fixedFont">
								<b><a href="../symbols/window.Mtils.extention.html#constructor">window.Mtils.extention</a></b>()
							</div>
							<div class="description">提供一些扩展加强的函数</div>
						</td>
					</tr>
				</tbody>
			</table>
			

<!-- ============================== properties summary ===================== -->
			
				
				
				<table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class window.Mtils.extention.">
					<caption>Field Summary</caption>
					<thead>
						<tr>
							<th scope="col">Field Attributes</th>
							<th scope="col">Field Name and Description</th>
						</tr>
					</thead>
					<tbody>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.isArray">isArray</a></b>
								</div>
								<div class="description">判断变量是否为数组, 该函数已扩展到Mtils对象中</div>
							</td>
						</tr>
					
					</tbody>
				</table>
				
				
				
			

<!-- ============================== methods summary ======================== -->
			
				
				
				<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class window.Mtils.extention.">
					<caption>Method Summary</caption>
					<thead>
						<tr>
							<th scope="col">Method Attributes</th>
							<th scope="col">Method Name and Description</th>
						</tr>
					</thead>
					<tbody>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.accAdd">accAdd</a></b>(arg1, arg2)
								</div>
								<div class="description">加法函数，用来得到精确的加法结果, 该函数已扩展到Math对象中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.accDiv">accDiv</a></b>(arg1, arg2)
								</div>
								<div class="description">除法函数，用来得到精确的除法结果, 该函数已扩展到Math对象中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.accMul">accMul</a></b>(arg1, arg2)
								</div>
								<div class="description">减法乘法，用来得到精确的乘法结果, 该函数已扩展到Math对象中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.accSub">accSub</a></b>(arg1, arg2)
								</div>
								<div class="description">减法函数，用来得到精确的减法结果, 该函数已扩展到Math对象中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.atrim">atrim</a></b>(str_data)
								</div>
								<div class="description">清除文本中所有的空白字符,包括空格/Tab/换行等, 该函数已扩展到String对象中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.extend">extend</a></b>(arg1, arg2)
								</div>
								<div class="description">将一个对象进行拷贝,可以传入多个对象,第一个参数会覆盖第二个参数的属性.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.formatDate">formatDate</a></b>(timestamp, pattern)
								</div>
								<div class="description">时间格式化,该函数已扩展到Date对象中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.includes">includes</a></b>(param, include)
								</div>
								<div class="description">判断数据中是否包含指定数据,该对象已经扩展到Array,String.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.isDate">isDate</a></b>(varName)
								</div>
								<div class="description">判断变量是否为日期, 该函数已扩展到Mtils对象中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.isFile">isFile</a></b>(varName)
								</div>
								<div class="description">判断变量是否为文件, 该函数已扩展到Mtils对象中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.isFormData">isFormData</a></b>(varName)
								</div>
								<div class="description">判断变量是否为表单数据, 该函数已扩展到Mtils对象中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.isFunction">isFunction</a></b>(varName)
								</div>
								<div class="description">判断变量是否为函数, 该函数已扩展到Mtils对象中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.isNaN">isNaN</a></b>(varName)
								</div>
								<div class="description">判断变量是否为NaN</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.isNumber">isNumber</a></b>(varName)
								</div>
								<div class="description">通过数据类型判断变量是否为数字, 该函数已扩展到Mtils对象中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.isObject">isObject</a></b>(varName)
								</div>
								<div class="description">判断变量是否为普通对象, 该函数已扩展到Mtils对象中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.isRegExp">isRegExp</a></b>(varName)
								</div>
								<div class="description">判断变量是否为正则表达式, 该函数已扩展到Mtils对象中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.isString">isString</a></b>(varName)
								</div>
								<div class="description">判断变量是否为字符串, 该函数已扩展到Mtils对象中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.isWindow">isWindow</a></b>(varName)
								</div>
								<div class="description">判断变量是否为window对象, 该函数已扩展到Mtils对象中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.ltrim">ltrim</a></b>(str_data)
								</div>
								<div class="description">清除文本左边的空白字符,包括空格/Tab/换行等, 该函数已扩展到String对象中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.now">now</a></b>(format)
								</div>
								<div class="description">返回服务器的当前时间时间,可以格式化后返回,默认返回时间戳.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.replaceAll">replaceAll</a></b>(str_origin, str_target, str_replace)
								</div>
								<div class="description">替换源文本中的所有目标文本, 该函数已扩展到String对象中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.rtrim">rtrim</a></b>(str_data)
								</div>
								<div class="description">清除文本右边的空白字符,包括空格/Tab/换行等, 该函数已扩展到String对象中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.sortBy">sortBy</a></b>(arg1, arg2)
								</div>
								<div class="description">数组排序;可以排序简单数组或对象数组;
例如;根据年龄排序以下对象数组.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.strToJson">strToJson</a></b>(str)
								</div>
								<div class="description">将非严格模式的JSON字符串转换为JSON对象, 也可用于字符串转普通数据类型, 如'true'转为true, 该函数已扩展到window/Mtils对象中;</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">window.Mtils.extention.<b><a href="../symbols/window.Mtils.extention.html#.uniqueArray">uniqueArray</a></b>(array)
								</div>
								<div class="description">去除数组中的重复元素, 该函数已扩展到Mtils对象中</div>
							</td>
						</tr>
					
					</tbody>
				</table>
				
				
				
			
<!-- ============================== events summary ======================== -->
			

<!-- ============================== constructor details ==================== -->		
			
			<div class="details"><a name="constructor"> </a>
				<div class="sectionTitle">
					Class Detail
				</div>
				
				<div class="fixedFont">
						<b>window.Mtils.extention</b>()
				</div>
				
				<div class="description">
					提供一些扩展加强的函数
					<br /><i>Author: </i>Rui.Zhang.
				</div>
				
				
				
				
					
					
					
					
					
					
					

			</div>
			

<!-- ============================== field details ========================== -->		
			
				<div class="sectionTitle">
					Field Detail
				</div>
				
					<a name=".isArray"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{boolean}</span>
					<span class="light">window.Mtils.extention.</span><b>isArray</b>
					
					</div>
					<div class="description">
						判断变量是否为数组, 该函数已扩展到Mtils对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					

						
						
						
						

					
				
			

<!-- ============================== method details ========================= -->		
			
				<div class="sectionTitle">
					Method Detail
				</div>
				
					<a name=".accAdd"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{float/Int}</span>
					<span class="light">window.Mtils.extention.</span><b>accAdd</b>(arg1, arg2)
					
					</div>
					<div class="description">
						加法函数，用来得到精确的加法结果, 该函数已扩展到Math对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Float/Int}</span> <b>arg1</b>
									
								</dt>
								<dd>数值1</dd>
							
								<dt>
									<span class="light fixedFont">{Float/Int}</span> <b>arg2</b>
									
								</dt>
								<dd>数值2</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{float/Int}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".accDiv"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{float/Int}</span>
					<span class="light">window.Mtils.extention.</span><b>accDiv</b>(arg1, arg2)
					
					</div>
					<div class="description">
						除法函数，用来得到精确的除法结果, 该函数已扩展到Math对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Float/Int}</span> <b>arg1</b>
									
								</dt>
								<dd>数值1</dd>
							
								<dt>
									<span class="light fixedFont">{Float/Int}</span> <b>arg2</b>
									
								</dt>
								<dd>数值2</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{float/Int}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".accMul"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{float/Int}</span>
					<span class="light">window.Mtils.extention.</span><b>accMul</b>(arg1, arg2)
					
					</div>
					<div class="description">
						减法乘法，用来得到精确的乘法结果, 该函数已扩展到Math对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Float/Int}</span> <b>arg1</b>
									
								</dt>
								<dd>数值1</dd>
							
								<dt>
									<span class="light fixedFont">{Float/Int}</span> <b>arg2</b>
									
								</dt>
								<dd>数值2</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{float/Int}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".accSub"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{float/Int}</span>
					<span class="light">window.Mtils.extention.</span><b>accSub</b>(arg1, arg2)
					
					</div>
					<div class="description">
						减法函数，用来得到精确的减法结果, 该函数已扩展到Math对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Float/Int}</span> <b>arg1</b>
									
								</dt>
								<dd>数值1</dd>
							
								<dt>
									<span class="light fixedFont">{Float/Int}</span> <b>arg2</b>
									
								</dt>
								<dd>数值2</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{float/Int}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".atrim"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{String}</span>
					<span class="light">window.Mtils.extention.</span><b>atrim</b>(str_data)
					
					</div>
					<div class="description">
						清除文本中所有的空白字符,包括空格/Tab/换行等, 该函数已扩展到String对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>str_data</b>
									
								</dt>
								<dd>欲清除的文本</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{String}</span> , 清除空白字符后的文本</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".extend"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{boolean}</span>
					<span class="light">window.Mtils.extention.</span><b>extend</b>(arg1, arg2)
					
					</div>
					<div class="description">
						将一个对象进行拷贝,可以传入多个对象,第一个参数会覆盖第二个参数的属性.该对象已扩展到Mtils
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{any}</span> <b>arg1</b>
									
								</dt>
								<dd>欲拷贝属性的对象1,若为true则为深拷贝</dd>
							
								<dt>
									<span class="light fixedFont">{any}</span> <b>arg2</b>
									
								</dt>
								<dd>欲拷贝属性的对象2</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{boolean}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".formatDate"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{String}</span>
					<span class="light">window.Mtils.extention.</span><b>formatDate</b>(timestamp, pattern)
					
					</div>
					<div class="description">
						时间格式化,该函数已扩展到Date对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
					<pre class="code">Mtils.text.formatDate(new Date().getTime(), "yy年MM月dd日  hh时mm分ss秒");</pre>
					
					<pre class="code">new Date().format("yy年MM月dd日  hh时mm分ss秒");</pre>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>timestamp</b>
									
								</dt>
								<dd>时间戳</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>pattern</b>
									
								</dt>
								<dd>格式化字符串,如 "yy-MM-dd hh:mm:ss"</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{String}</span> , 格式化后的时间</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".includes"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{boolean}</span>
					<span class="light">window.Mtils.extention.</span><b>includes</b>(param, include)
					
					</div>
					<div class="description">
						判断数据中是否包含指定数据,该对象已经扩展到Array,String.
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{any}</span> <b>param</b>
									
								</dt>
								<dd>被搜寻的数据</dd>
							
								<dt>
									<span class="light fixedFont">{any}</span> <b>include</b>
									
								</dt>
								<dd>欲搜寻的数据</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{boolean}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".isDate"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{boolean}</span>
					<span class="light">window.Mtils.extention.</span><b>isDate</b>(varName)
					
					</div>
					<div class="description">
						判断变量是否为日期, 该函数已扩展到Mtils对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{varName}</span> <b>varName</b>
									
								</dt>
								<dd>待判断数据类型的变量</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{boolean}</span> , true/false</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".isFile"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{boolean}</span>
					<span class="light">window.Mtils.extention.</span><b>isFile</b>(varName)
					
					</div>
					<div class="description">
						判断变量是否为文件, 该函数已扩展到Mtils对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{varName}</span> <b>varName</b>
									
								</dt>
								<dd>待判断数据类型的变量</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{boolean}</span> , true/false</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".isFormData"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{boolean}</span>
					<span class="light">window.Mtils.extention.</span><b>isFormData</b>(varName)
					
					</div>
					<div class="description">
						判断变量是否为表单数据, 该函数已扩展到Mtils对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{varName}</span> <b>varName</b>
									
								</dt>
								<dd>待判断数据类型的变量</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{boolean}</span> , true/false</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".isFunction"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{boolean}</span>
					<span class="light">window.Mtils.extention.</span><b>isFunction</b>(varName)
					
					</div>
					<div class="description">
						判断变量是否为函数, 该函数已扩展到Mtils对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{varName}</span> <b>varName</b>
									
								</dt>
								<dd>待判断数据类型的变量</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{boolean}</span> , true/false</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".isNaN"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{boolean}</span>
					<span class="light">window.Mtils.extention.</span><b>isNaN</b>(varName)
					
					</div>
					<div class="description">
						判断变量是否为NaN
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{varName}</span> <b>varName</b>
									
								</dt>
								<dd>待判断数据类型的变量</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{boolean}</span> , true/false</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".isNumber"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{boolean}</span>
					<span class="light">window.Mtils.extention.</span><b>isNumber</b>(varName)
					
					</div>
					<div class="description">
						通过数据类型判断变量是否为数字, 该函数已扩展到Mtils对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{varName}</span> <b>varName</b>
									
								</dt>
								<dd>待判断数据类型的变量</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{boolean}</span> , true/false</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".isObject"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{boolean}</span>
					<span class="light">window.Mtils.extention.</span><b>isObject</b>(varName)
					
					</div>
					<div class="description">
						判断变量是否为普通对象, 该函数已扩展到Mtils对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{varName}</span> <b>varName</b>
									
								</dt>
								<dd>待判断数据类型的变量</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{boolean}</span> , true/false</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".isRegExp"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{boolean}</span>
					<span class="light">window.Mtils.extention.</span><b>isRegExp</b>(varName)
					
					</div>
					<div class="description">
						判断变量是否为正则表达式, 该函数已扩展到Mtils对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{varName}</span> <b>varName</b>
									
								</dt>
								<dd>待判断数据类型的变量</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{boolean}</span> , true/false</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".isString"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{boolean}</span>
					<span class="light">window.Mtils.extention.</span><b>isString</b>(varName)
					
					</div>
					<div class="description">
						判断变量是否为字符串, 该函数已扩展到Mtils对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{varName}</span> <b>varName</b>
									
								</dt>
								<dd>待判断数据类型的变量</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{boolean}</span> , true/false</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".isWindow"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{boolean}</span>
					<span class="light">window.Mtils.extention.</span><b>isWindow</b>(varName)
					
					</div>
					<div class="description">
						判断变量是否为window对象, 该函数已扩展到Mtils对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{varName}</span> <b>varName</b>
									
								</dt>
								<dd>待判断数据类型的变量</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{boolean}</span> , true/false</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".ltrim"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{String}</span>
					<span class="light">window.Mtils.extention.</span><b>ltrim</b>(str_data)
					
					</div>
					<div class="description">
						清除文本左边的空白字符,包括空格/Tab/换行等, 该函数已扩展到String对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>str_data</b>
									
								</dt>
								<dd>欲清除的文本</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{String}</span> , 清除空白字符后的文本</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".now"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{float/Int}</span>
					<span class="light">window.Mtils.extention.</span><b>now</b>(format)
					
					</div>
					<div class="description">
						返回服务器的当前时间时间,可以格式化后返回,默认返回时间戳. 该函数已扩展到Date/Mtils对象中
注意：当在本地使用此函数将会返回本地时间,服务器请求地址为：location.href
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>format</b>
									
								</dt>
								<dd>时间格式化参数</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{float/Int}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".replaceAll"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{String}</span>
					<span class="light">window.Mtils.extention.</span><b>replaceAll</b>(str_origin, str_target, str_replace)
					
					</div>
					<div class="description">
						替换源文本中的所有目标文本, 该函数已扩展到String对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>str_origin</b>
									
								</dt>
								<dd>被替换的文本</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>str_target</b>
									
								</dt>
								<dd>欲替换的文本</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>str_replace</b>
									
								</dt>
								<dd>用作替换的文本</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{String}</span> , 替换后的文本</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".rtrim"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{String}</span>
					<span class="light">window.Mtils.extention.</span><b>rtrim</b>(str_data)
					
					</div>
					<div class="description">
						清除文本右边的空白字符,包括空格/Tab/换行等, 该函数已扩展到String对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>str_data</b>
									
								</dt>
								<dd>欲清除的文本</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{String}</span> , 清除空白字符后的文本</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".sortBy"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{boolean}</span>
					<span class="light">window.Mtils.extention.</span><b>sortBy</b>(arg1, arg2)
					
					</div>
					<div class="description">
						数组排序;可以排序简单数组或对象数组;
例如;根据年龄排序以下对象数组. <br> var arr = [{name:"张三", age:11}, {name:"李四", age:13}]; <br> result = arr.sort(sortBy("age", false)); <br> 排序结果为 [{name:"李四", age:13}, {name:"张三", age:11}];<br> 又例如排序简单数组 arr = [1,2,3,4,5];<br>正序排序调用 arr.sort(Mtils.extention.sortBy(true); <br> 逆序排序用 arr.sort(Mtils.extention.sortBy(false);
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{string}</span> <b>arg1</b>
									
								</dt>
								<dd>排序对象数组时;此参数为欲排序的属性;当排序简单数组时,此参数含义与第二个参数相同</dd>
							
								<dt>
									<span class="light fixedFont">{boolean}</span> <b>arg2</b>
									
								</dt>
								<dd>true/升序;false/降序</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{boolean}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".strToJson"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{any}</span>
					<span class="light">window.Mtils.extention.</span><b>strToJson</b>(str)
					
					</div>
					<div class="description">
						将非严格模式的JSON字符串转换为JSON对象, 也可用于字符串转普通数据类型, 如'true'转为true, 该函数已扩展到window/Mtils对象中;
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>str</b>
									
								</dt>
								<dd>待转换的JSON字符串</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{any}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".uniqueArray"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{Arr}</span>
					<span class="light">window.Mtils.extention.</span><b>uniqueArray</b>(array)
					
					</div>
					<div class="description">
						去除数组中的重复元素, 该函数已扩展到Mtils对象中
						
						<br /><i>Author: </i>Rui.Zhang.
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Arr}</span> <b>array</b>
									
								</dt>
								<dd>待去重数组</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Arr}</span> , 去重后的数组</dd>
							
							</dl>
						
						
						

					
				
			
			
<!-- ============================== event details ========================= -->		
			
			
			<hr />
		</div>

		
<!-- ============================== footer ================================= -->
		<div class="fineprint" style="clear:both">
			
			Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.3.0 on Thu Jul 19 2018 17:02:29 GMT+0800 (CST)
		</div>
	</body>
</html>
